<?php

namespace app\index\controller;

class Member
{

    public function __construct()
    {
        $memberId = session('member_id');
        if (empty($memberId)) {
            header('Location: /index/index/index/');
        }
    }

    public function index()
    {
        echo '这是登录后的界面';
    }

}
